<%@ page contentType="text/html; charset=UTF-8" language="java" %>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator" %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>

    <link href="${pageContext.request.contextPath}/bootstrap/css/bootstrap.min.css" rel="stylesheet"/>
    <link href="${pageContext.request.contextPath}/bootstrap/css/bootstrap-responsive.css" rel="stylesheet"/>
    <title><decorator:title default="ClientMaster @ Odessa"/></title>

    <style type="text/css">
        body {
            padding-top: 60px;
            padding-bottom: 40px;
        }
    </style>

    <decorator:head/>
</head>
<body>

<div>

    <div class="navbar navbar-inverse navbar-fixed-top">
        <div class="navbar-inner">
            <div class="container">
                <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </a>
                <a class="brand" href="#">ClientMaster</a>

                <%--<sec:authorize access="isAuthenticated()">--%>
                    <div class="nav-collapse collapse">
                        <ul class="nav">
                            <li><a href="${pageContext.request.contextPath}/client/list.do">All clients</a></li>
                            <li><a href="${pageContext.request.contextPath}/client/0/edit.do">Add new client</a></li>
                            <li><a href="${pageContext.request.contextPath}/logout.do">Logout</a></li>
                        </ul>
                        <form class="navbar-form pull-right form-search" action="search">

                            <input class="input-medium search-query" placeholder="Enter client Id"
                                   id="appendedInputButton" size="16" type="text"><input class="btn" type="submit"
                                                                                         value="Go!">

                        </form>
                    </div>
                <%--</sec:authorize>--%>
            </div>
        </div>
    </div>
</div>
<div id="container">
    <decorator:body/>
</div>

<div id="footer">

</div>

<script src="${pageContext.request.contextPath}/bootstrap/js/bootstrap.min.js"></script>

</body>
</html>